﻿using GalaSoft.MvvmLight;
using SQLite;

namespace Dpx.Models {
    /// <summary>
    /// 收藏类。
    /// </summary>
    public class Favorite : ObservableObject {
        /// <summary>
        /// 主键。
        /// </summary>
        [PrimaryKey]
        public int PoetryId { get; set; }

        /// <summary>
        /// 是否收藏
        /// </summary>
        public virtual bool IsFavorite {
            get => _isFavorite;
            set => Set(nameof(IsFavorite), ref _isFavorite, value);
        }

        /// <summary>
        /// 是否收藏
        /// </summary>
        private bool _isFavorite;

        /// <summary>
        /// 时间戳。
        /// </summary>
        public virtual long Timestamp { get; set; }
    }
}